-- GENERATED SPELL FOR [Sergeant Bly] --


function spell0_7604(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(12170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7604', 637, 1)
end

function spell1_7604(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7604', 8337, 1)
end

function Sorts_7604(pUnit, Event)
local choix_sorts_7604 = math.random(0, 1)
if choix_sorts_7604 == 0 then
pUnit:RegisterEvent('spell0_7604', 1, 1)
end
if choix_sorts_7604 == 1 then
pUnit:RegisterEvent('spell1_7604', 1, 1)
end
end

function mob7604_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7604', math.random(1500, 3000), 1)
end

function mob7604_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7604_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7604_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7604, 1, 'mob7604_Action')
RegisterUnitEvent(7604, 2, 'mob7604_Leave')
RegisterUnitEvent(7604, 3, 'mob7604_Kill')
RegisterUnitEvent(7604, 4, 'mob7604_Die')
